<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: rect.c 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00935_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">rect.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00935.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="a00935.html#a479bbe69c871894f6ca23dfa237481ad">   21</a></span>&#160;BOOL <a class="code" href="a00953.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> <a class="code" href="a00935.html#a479bbe69c871894f6ca23dfa237481ad">SetRect</a>(</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    LPRECT prc,</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <span class="keywordtype">int</span> left,</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <span class="keywordtype">int</span> top,</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <span class="keywordtype">int</span> right,</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <span class="keywordtype">int</span> bottom)</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;{</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keywordflow">if</span> (prc == NULL) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    prc-&gt;left = left;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    prc-&gt;top = top;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    prc-&gt;right = right;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    prc-&gt;bottom = bottom;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;}</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="a00935.html#add42cfa617c629deef27087b88368891">   46</a></span>&#160;BOOL <a class="code" href="a00953.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> <a class="code" href="a00935.html#add42cfa617c629deef27087b88368891">CopyInflateRect</a>(</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    LPRECT prcDst,</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    CONST RECT *prcSrc,</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keywordtype">int</span> cx, <span class="keywordtype">int</span> <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>)</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;{</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    prcDst-&gt;left   = prcSrc-&gt;left   - cx;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    prcDst-&gt;right  = prcSrc-&gt;right  + cx;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    prcDst-&gt;top    = prcSrc-&gt;top    - <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    prcDst-&gt;bottom = prcSrc-&gt;bottom + <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;}</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="a00935.html#ac638a1ce39dd10773c0133549503776e">   67</a></span>&#160;BOOL <a class="code" href="a00953.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> <a class="code" href="a00935.html#ac638a1ce39dd10773c0133549503776e">CopyOffsetRect</a>(</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    LPRECT prcDst,</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    CONST RECT *prcSrc,</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keywordtype">int</span> cx, <span class="keywordtype">int</span> <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>)</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;{</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    prcDst-&gt;left   = prcSrc-&gt;left   + cx;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    prcDst-&gt;right  = prcSrc-&gt;right  + cx;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    prcDst-&gt;top    = prcSrc-&gt;top    + <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    prcDst-&gt;bottom = prcSrc-&gt;bottom + <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;}</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="a00935.html#aae87a48872786438315bf6793cbce050">   95</a></span>&#160;BOOL <a class="code" href="a00953.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> <a class="code" href="a00935.html#aae87a48872786438315bf6793cbce050">IsRectEmpty</a>(</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    CONST RECT *prc)</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;{</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordflow">if</span> (prc == NULL) <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keywordflow">return</span> ((prc-&gt;left &gt;= prc-&gt;right) || (prc-&gt;top &gt;= prc-&gt;bottom));</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;}</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">  111</a></span>&#160;BOOL <a class="code" href="a00953.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> <a class="code" href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a>(</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    CONST RECT *prc,</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    POINT  pt)</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;{</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <span class="keywordflow">if</span> (prc == NULL) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keywordflow">return</span> ((pt.x &gt;= prc-&gt;left) &amp;&amp; (pt.x &lt; prc-&gt;right) &amp;&amp;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            (pt.y &gt;= prc-&gt;top)  &amp;&amp; (pt.y &lt; prc-&gt;bottom));</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;}</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="a00935.html#a59a3cfdacf3d0e5d10c20abee032cfc6">  132</a></span>&#160;BOOL <a class="code" href="a00953.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> <a class="code" href="a00935.html#a59a3cfdacf3d0e5d10c20abee032cfc6">OffsetRect</a>(</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    LPRECT prc,</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordtype">int</span> cx,</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>)</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;{</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keywordflow">if</span> (prc == NULL) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    prc-&gt;left   += cx;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    prc-&gt;right  += cx;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    prc-&gt;bottom += <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    prc-&gt;top    += <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;}</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="a00935.html#afa361f1e7cc3d9957b148ff982f8d030">  158</a></span>&#160;BOOL <a class="code" href="a00953.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> <a class="code" href="a00935.html#afa361f1e7cc3d9957b148ff982f8d030">InflateRect</a>(</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    LPRECT prc,</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <span class="keywordtype">int</span> cx,</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>)</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;{</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keywordflow">if</span> (prc == NULL) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    prc-&gt;left   -= cx;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    prc-&gt;right  += cx;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    prc-&gt;top    -= <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    prc-&gt;bottom += <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;}</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="a00935.html#a1c87c29903dd37145cd93b64140a5d3a">  184</a></span>&#160;BOOL <a class="code" href="a00953.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> <a class="code" href="a00935.html#a1c87c29903dd37145cd93b64140a5d3a">IntersectRect</a>(</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    LPRECT prcDst,</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    CONST RECT *prcSrc1,</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    CONST RECT *prcSrc2)</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160; </div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;{</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; </div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keywordflow">if</span> ((prcDst == NULL) || (prcSrc1 == NULL) || (prcSrc2 == NULL)) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    prcDst-&gt;left  = max(prcSrc1-&gt;left, prcSrc2-&gt;left);</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    prcDst-&gt;right = min(prcSrc1-&gt;right, prcSrc2-&gt;right);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="comment">     * check for empty rect</span></div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    <span class="keywordflow">if</span> (prcDst-&gt;left &lt; prcDst-&gt;right) {</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;        prcDst-&gt;top = max(prcSrc1-&gt;top, prcSrc2-&gt;top);</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        prcDst-&gt;bottom = min(prcSrc1-&gt;bottom, prcSrc2-&gt;bottom);</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160; </div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="comment">         * check for empty rect</span></div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;        <span class="keywordflow">if</span> (prcDst-&gt;top &lt; prcDst-&gt;bottom) {</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;            <span class="keywordflow">return</span> TRUE;        <span class="comment">// not empty</span></div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        }</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    }</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160; </div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="comment">     * empty rect</span></div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <a class="code" href="a00935.html#a6f9d1e9b327899127c080496900d48d9">SetRectEmpty</a>(prcDst);</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160; </div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;}</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160; </div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160; </div>
<div class="line"><a name="l00233"></a><span class="lineno"><a class="line" href="a00935.html#ae447c29296398f6e6ae0f28d192e606d">  233</a></span>&#160;BOOL <a class="code" href="a00953.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> <a class="code" href="a00935.html#ae447c29296398f6e6ae0f28d192e606d">UnionRect</a>(</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    LPRECT prcDst,</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    CONST RECT *prcSrc1,</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    CONST RECT *prcSrc2)</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;{</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    BOOL frc1Empty, frc2Empty;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160; </div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <span class="keywordflow">if</span> ((prcDst == NULL) || (prcSrc1 == NULL) || (prcSrc2 == NULL)) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160; </div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    frc1Empty = ((prcSrc1-&gt;left &gt;= prcSrc1-&gt;right) ||</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;            (prcSrc1-&gt;top &gt;= prcSrc1-&gt;bottom));</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160; </div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    frc2Empty = ((prcSrc2-&gt;left &gt;= prcSrc2-&gt;right) ||</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;            (prcSrc2-&gt;top &gt;= prcSrc2-&gt;bottom));</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160; </div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    <span class="keywordflow">if</span> (frc1Empty &amp;&amp; frc2Empty) {</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        <a class="code" href="a00935.html#a6f9d1e9b327899127c080496900d48d9">SetRectEmpty</a>(prcDst);</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    }</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="keywordflow">if</span> (frc1Empty) {</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        *prcDst = *prcSrc2;</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    }</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160; </div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    <span class="keywordflow">if</span> (frc2Empty) {</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;        *prcDst = *prcSrc1;</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    }</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160; </div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;<span class="comment">     * form the union of the two non-empty rects</span></div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    prcDst-&gt;left   = min(prcSrc1-&gt;left,   prcSrc2-&gt;left);</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    prcDst-&gt;top    = min(prcSrc1-&gt;top,    prcSrc2-&gt;top);</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;    prcDst-&gt;right  = max(prcSrc1-&gt;right,  prcSrc2-&gt;right);</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    prcDst-&gt;bottom = max(prcSrc1-&gt;bottom, prcSrc2-&gt;bottom);</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160; </div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;}</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160; </div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160; </div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;<span class="preprocessor">#undef EqualRect     // don&#39;t let macro interfere with API</span></div>
<div class="line"><a name="l00285"></a><span class="lineno"><a class="line" href="a00935.html#a0cbc8750cb300c339ef3d2c0ca689f1a">  285</a></span>&#160;BOOL <a class="code" href="a00953.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> <a class="code" href="a00935.html#a0cbc8750cb300c339ef3d2c0ca689f1a">EqualRect</a>(</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    CONST RECT *prc1,</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;    CONST RECT *prc2)</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;{</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    <span class="keywordflow">if</span> ((prc1 == NULL) || (prc2 == NULL)) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160; </div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;<span class="comment">     * Test equality only. This is what win31 does. win31 does not check to</span></div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;<span class="comment">     * see if the rectangles are &quot;empty&quot; first.</span></div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    <span class="keywordflow">return</span> RtlEqualMemory(prc1, prc2, <span class="keyword">sizeof</span>(RECT));</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;}</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160; </div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160; </div>
<div class="line"><a name="l00316"></a><span class="lineno"><a class="line" href="a00935.html#afa9133f9221aadfcbf10c70a168f3a5f">  316</a></span>&#160;BOOL <a class="code" href="a00953.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> <a class="code" href="a00935.html#afa9133f9221aadfcbf10c70a168f3a5f">SubtractRect</a>(</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    LPRECT prcDst,</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    CONST RECT *prcSrc1,</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    CONST RECT *prcSrc2)</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;{</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    <span class="keywordtype">int</span> cSidesOut;</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    BOOL fIntersect;</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    RECT rcInt;</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160; </div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    <span class="keywordflow">if</span> ((prcDst == NULL) || (prcSrc1 == NULL) || (prcSrc2 == NULL)) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160; </div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    fIntersect = <a class="code" href="a00935.html#a1c87c29903dd37145cd93b64140a5d3a">IntersectRect</a>(&amp;rcInt, prcSrc1, prcSrc2);</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160; </div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;<span class="comment">     * this is done after the intersection in case prcDst is the same</span></div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;<span class="comment">     * pointer as prcSrc2</span></div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    *prcDst = *prcSrc1;</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160; </div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    <span class="keywordflow">if</span> (fIntersect) {</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;<span class="comment">         * exactly any 3 sides of prc2 must be outside prc1 to subtract</span></div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;        cSidesOut = 0;</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;        <span class="keywordflow">if</span> (rcInt.left   &lt;= prcSrc1-&gt;left)</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;            cSidesOut++;</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;        <span class="keywordflow">if</span> (rcInt.top    &lt;= prcSrc1-&gt;top)</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;            cSidesOut++;</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;        <span class="keywordflow">if</span> (rcInt.right  &gt;= prcSrc1-&gt;right)</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;            cSidesOut++;</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;        <span class="keywordflow">if</span> (rcInt.bottom &gt;= prcSrc1-&gt;bottom)</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;            cSidesOut++;</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160; </div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;        <span class="keywordflow">if</span> (cSidesOut == 4) {</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;<span class="comment">             * result is the empty rect</span></div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;             <a class="code" href="a00935.html#a6f9d1e9b327899127c080496900d48d9">SetRectEmpty</a>(prcDst);</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;             <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;        }</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160; </div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        <span class="keywordflow">if</span> (cSidesOut == 3) {</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;<span class="comment">             * subtract the intersecting rect</span></div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;            <span class="keywordflow">if</span> (rcInt.left &gt; prcSrc1-&gt;left)</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;                prcDst-&gt;right = rcInt.left;</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160; </div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (rcInt.right &lt; prcSrc1-&gt;right)</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;                prcDst-&gt;left = rcInt.right;</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160; </div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (rcInt.top &gt; prcSrc1-&gt;top)</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;                prcDst-&gt;bottom = rcInt.top;</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160; </div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (rcInt.bottom &lt; prcSrc1-&gt;bottom)</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;                prcDst-&gt;top = rcInt.bottom;</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;        }</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    }</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160; </div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    <span class="keywordflow">if</span> ((prcDst-&gt;left &gt;= prcDst-&gt;right) || (prcDst-&gt;top &gt;= prcDst-&gt;bottom))</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160; </div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;}</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160; </div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160; </div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;<span class="preprocessor">#undef CopyRect     // don&#39;t let macro interfere with API</span></div>
<div class="line"><a name="l00391"></a><span class="lineno"><a class="line" href="a00935.html#a31ccccdb469eefbb55d18b71a26af0da">  391</a></span>&#160;BOOL <a class="code" href="a00953.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> <a class="code" href="a00935.html#a31ccccdb469eefbb55d18b71a26af0da">CopyRect</a>(</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;    LPRECT prcDst,</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;    CONST RECT *prcSrc)</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;{</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    <span class="keywordflow">if</span> ((prcDst == NULL) || (prcSrc == NULL))</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160; </div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    *prcDst = *prcSrc;</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;}</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160; </div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160; </div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160; </div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;<span class="preprocessor">#undef SetRectEmpty     // don&#39;t let macro interfere with API</span></div>
<div class="line"><a name="l00414"></a><span class="lineno"><a class="line" href="a00935.html#a6f9d1e9b327899127c080496900d48d9">  414</a></span>&#160;BOOL <a class="code" href="a00953.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> <a class="code" href="a00935.html#a6f9d1e9b327899127c080496900d48d9">SetRectEmpty</a>(</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;    LPRECT prc)</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;{</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    <span class="keywordflow">if</span> (prc == NULL) <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160; </div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;    RtlZeroMemory(prc, <span class="keyword">sizeof</span>(RECT));</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa00935_html_ae447c29296398f6e6ae0f28d192e606d"><div class="ttname"><a href="a00935.html#ae447c29296398f6e6ae0f28d192e606d">UnionRect</a></div><div class="ttdeci">BOOL APIENTRY UnionRect(LPRECT prcDst, CONST RECT *prcSrc1, CONST RECT *prcSrc2)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00233">rect.c:233</a></div></div>
<div class="ttc" id="aa00935_html_a479bbe69c871894f6ca23dfa237481ad"><div class="ttname"><a href="a00935.html#a479bbe69c871894f6ca23dfa237481ad">SetRect</a></div><div class="ttdeci">BOOL APIENTRY SetRect(LPRECT prc, int left, int top, int right, int bottom)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00021">rect.c:21</a></div></div>
<div class="ttc" id="aa00935_html_aae87a48872786438315bf6793cbce050"><div class="ttname"><a href="a00935.html#aae87a48872786438315bf6793cbce050">IsRectEmpty</a></div><div class="ttdeci">BOOL APIENTRY IsRectEmpty(CONST RECT *prc)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00095">rect.c:95</a></div></div>
<div class="ttc" id="aa00935_html_a59a3cfdacf3d0e5d10c20abee032cfc6"><div class="ttname"><a href="a00935.html#a59a3cfdacf3d0e5d10c20abee032cfc6">OffsetRect</a></div><div class="ttdeci">BOOL APIENTRY OffsetRect(LPRECT prc, int cx, int cy)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00132">rect.c:132</a></div></div>
<div class="ttc" id="aa00935_html_a1c87c29903dd37145cd93b64140a5d3a"><div class="ttname"><a href="a00935.html#a1c87c29903dd37145cd93b64140a5d3a">IntersectRect</a></div><div class="ttdeci">BOOL APIENTRY IntersectRect(LPRECT prcDst, CONST RECT *prcSrc1, CONST RECT *prcSrc2)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00184">rect.c:184</a></div></div>
<div class="ttc" id="aa00935_html_a75b3bf802c369845c4381fcee638bc8a"><div class="ttname"><a href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a></div><div class="ttdeci">BOOL APIENTRY PtInRect(CONST RECT *prc, POINT pt)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00111">rect.c:111</a></div></div>
<div class="ttc" id="aa00935_html_ac638a1ce39dd10773c0133549503776e"><div class="ttname"><a href="a00935.html#ac638a1ce39dd10773c0133549503776e">CopyOffsetRect</a></div><div class="ttdeci">BOOL APIENTRY CopyOffsetRect(LPRECT prcDst, CONST RECT *prcSrc, int cx, int cy)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00067">rect.c:67</a></div></div>
<div class="ttc" id="aa00935_html_afa361f1e7cc3d9957b148ff982f8d030"><div class="ttname"><a href="a00935.html#afa361f1e7cc3d9957b148ff982f8d030">InflateRect</a></div><div class="ttdeci">BOOL APIENTRY InflateRect(LPRECT prc, int cx, int cy)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00158">rect.c:158</a></div></div>
<div class="ttc" id="aa00716_html_ac7b5fb8555805e7e7c11b30491a324f7"><div class="ttname"><a href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a></div><div class="ttdeci">int cy[5]</div><div class="ttdef"><b>Definition:</b> <a href="a00716_source.html#l00456">inctlpan.c:456</a></div></div>
<div class="ttc" id="aa00935_html_a0cbc8750cb300c339ef3d2c0ca689f1a"><div class="ttname"><a href="a00935.html#a0cbc8750cb300c339ef3d2c0ca689f1a">EqualRect</a></div><div class="ttdeci">BOOL APIENTRY EqualRect(CONST RECT *prc1, CONST RECT *prc2)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00285">rect.c:285</a></div></div>
<div class="ttc" id="aa00935_html_afa9133f9221aadfcbf10c70a168f3a5f"><div class="ttname"><a href="a00935.html#afa9133f9221aadfcbf10c70a168f3a5f">SubtractRect</a></div><div class="ttdeci">BOOL APIENTRY SubtractRect(LPRECT prcDst, CONST RECT *prcSrc1, CONST RECT *prcSrc2)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00316">rect.c:316</a></div></div>
<div class="ttc" id="aa00935_html_a6f9d1e9b327899127c080496900d48d9"><div class="ttname"><a href="a00935.html#a6f9d1e9b327899127c080496900d48d9">SetRectEmpty</a></div><div class="ttdeci">BOOL APIENTRY SetRectEmpty(LPRECT prc)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00414">rect.c:414</a></div></div>
<div class="ttc" id="aa00935_html_a31ccccdb469eefbb55d18b71a26af0da"><div class="ttname"><a href="a00935.html#a31ccccdb469eefbb55d18b71a26af0da">CopyRect</a></div><div class="ttdeci">BOOL APIENTRY CopyRect(LPRECT prcDst, CONST RECT *prcSrc)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00391">rect.c:391</a></div></div>
<div class="ttc" id="aa00935_html_add42cfa617c629deef27087b88368891"><div class="ttname"><a href="a00935.html#add42cfa617c629deef27087b88368891">CopyInflateRect</a></div><div class="ttdeci">BOOL APIENTRY CopyInflateRect(LPRECT prcDst, CONST RECT *prcSrc, int cx, int cy)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00046">rect.c:46</a></div></div>
<div class="ttc" id="aa00953_html_a428a91acf2c2439dc1a257708ee1f805"><div class="ttname"><a href="a00953.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a></div><div class="ttdeci">#define APIENTRY</div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00005">bench.c:5</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_d1396aa20fcbba3cbb80fda211a2145f.html">rtl</a></li><li class="navelem"><a class="el" href="a00935.html">rect.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
